package com.yangyanhu.ssmc.shiro.mapper;

import com.yangyanhu.ssmc.shiro.pojo.Permission;
import com.yangyanhu.ssmc.shiro.pojo.Role;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * PermissionMapper
 */
public interface PermissionMapper extends Mapper<Permission> {
    /**
     * 根据Role查询Permission
     * @param role
     * @return Permission
     */
    public List<Permission> findPermissionByRole(Role role);
}